package com.nervenets.template.controller.common.params;

import com.nervenets.general.web.params.FormParams;
import com.nervenets.template.hibernate.domain.common.Bank;
import com.nervenets.template.service.BankService;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class BankFormParams extends FormParams<Bank, BankService> {
    @ApiModelProperty(value = "关联人ID", required = true)
    @Positive
    private long unionId;
    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank
    private String name;
    @ApiModelProperty(value = "卡号", required = true)
    @NotBlank
    private String number;
    @ApiModelProperty(value = "签发银行", required = true)
    @NotBlank
    private String signedOrgan;
    @ApiModelProperty(value = "签发网点", required = true)
    @NotBlank
    private String signedBranch;
}
